<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tag.tld" prefix="tag"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'zidingyi.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <!-- 若是想在自定义标签中写入内容，则tag.tld中 <body-content>empty</body-content>empty变为JSP，
           代表可以写入JSP的内容 -->
  <tag:witer name="ZS">111111</tag:witer>
  <br/><hr/>
  <tag:tag2 name="张三" url="www.baidu.com"/>           <!-- 此标签类只写了end所有可以只有结束，也可以都写 -->
  <h1>h1</h1>
  
  <br/><hr/>
  <tag:tag3 name="张三" url="www.baidu.com">网址${1<9 }<h1>h1</h1></tag:tag3>
  <br/><hr/>
  <tag:tag4>循环</tag:tag4><br/>
  <tag:tag5 山西汾酒="50.0" 天山="60.0" 青岛啤酒="20.0">股市</tag:tag5>
  <br/><hr/>
  ${tag:length("abcdef") }
  <%List<Integer>list=new ArrayList<Integer>();
  for(int i=0;i<100;i++){
  list.add(i);
  request.setAttribute("list",list);
  }
   %>
   ${tag:length(list) }
   <tag:table var="item" items="${users}">
   	<tag:showUserInFo user="${item}" /> 
   
   </tag:table>
  </body>
</html>
